<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

//修改产品排序
class UpdateSortValidate extends Validate
{
    protected $rule = [
        'id' => 'require|number|min:1',
        'sort_val'  => 'require|number|min:0|max:1000',

    ];

    protected $message = [
        'id' => 'id必须是整数',
        'sort_val'  => '序号必须是0-1000的整数',
    ];

}